package dao;

import entity.User;

import java.util.List;
/*import utils.ResultList;*/

public interface UserDAO {
    User register(String uname, String unick, String upass);

    User query(long uid);
    User query(String uname);
    List<User> queryByNick(String unick);
    List<User> getAllRankedUsers();
    /*ResultList<User> queryByNick(String unick);*/

    boolean unregister(long uid);
    boolean unregister(String uname);

    boolean update(Long uid, String name, User newData);
}
